#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
#include<vector>
#include"vector.h"

int main()
{
	/*zpl::vector<int> v1(5, 10);
	zpl::print_vector(v1);
	v1.insert(v1.begin(), 14);
	zpl::print_vector(v1);
	v1.erase(v1.begin()+3);
	zpl::print_vector(v1);*/
	int ar[] = { 1,2,3,4,0,5,6,7,8,9 };

	int n = sizeof(ar) / sizeof(int);

	vector<int> v(ar, ar + n);

	vector<int>::iterator it = v.begin();

	while (it != v.end())

	{

		if (*it != 0)
		{
			cout << *it;
			it++;
		}

		else
			it = v.erase(it);
	}
	return 0;
}